<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/layui/css/layui.css"media="all">
</head>
<body>


<table class="layui-table">
  <colgroup>
    <col width="150">
    <col width="200">
    <col>
  </colgroup>
  <thead>
    <tr>
      <th>服务器</th>
      <% for(let i=0;i<24;++i){%>
      <th><%=i%></th>
      <%}%>
    </tr> 
  </thead> 
  <tbody>
  <% let total={}%>
  <% for(let j=0;j<24;++j){ %>
    <%total[j]=0%>
  <%}%>
  <% for(let i=0;i<ret.server.length;++i){ %>
  <tr>
        <td><%=ret.server[i].sname%></td>
        <% for(let j=0;j<24;++j){ %>
            <% if(ret.server[i][j]){%>
                <td><%=ret.server[i][j]%></td>
                <% total[j]+=ret.server[i][j] %>
            <%}else{%>
                <td></td>
            <%}%>
        <%}%> 
  </tr>
  <%}%>
  <tr>
  <td>总计</td> 
       <% for(let j=0;j<24;++j){ %>
          <%if(total[j]){%>
          <td><%=total[j]%></td>
          <%}else{%>
          <td></td>
          <%}%>
       <%}%>
  </tr>

 



 </tbody>
</table>

<!-- <button class="layui-btn">刷新</button> -->

<blockquote class="layui-elem-quote layui-quote-nm"></blockquote>



<script src="/layui/layui.js"></script>
<script>
    layui.config({
        base: '/webui/'  // 模块目录
    }).extend({
        "cosjs":"{/}/layui/?name=cosjs",
    }).use(['form','cosjs'], function () {
        let form = layui.form,cosjs=layui.cosjs,$ = layui.jquery;
         // let _ret=<%-JSON.stringify(ret)%>;
         // console.log(_ret)
    });
</script>
</body>
</html>